home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / incl52.lzh / assert.h next >
C/C++ Source or Header  |  1991-05-22  |  297b  |  14 lines

  1. /* Copyright Manx Software Systems, Inc. 1988.  All rights reserved */
  2.  
  3. #ifndef __ASSERT_H 
  4. #define __ASSERT_H
  5.  
  6. #ifndef NDEBUG
  7. void _assert(char *, const char *, unsigned int);
  8. #define assert(x) ((x) == 0 ? _assert(#x, __FILE__, __LINE__):(void)0)
  9. #else
  10. #define assert(x)    ((void)0)
  11. #endif
  12.  
  13. #endif
  14.